package com.hyl.entity;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * User
 *
 * @author hyl
 * @date 2025-06-20
 */
@Component
public class User {
    private Integer id;
    private String username;
    private String password;
    private String[] roles;
    private List permissions;
    private Set permissionSet;
    private Map permissionMap;

    @Autowired
    @Qualifier("dept11")
    private Dept dept;

    public User() {
    }

    public User(Integer id, String username, String password) {
        this.id = id;
        this.username = username;
        this.password = password;
    }

    public User(Integer id, String username) {
        this.id = id;
        this.username = username;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String[] getRoles() {
        return roles;
    }

    public void setRoles(String[] roles) {
        this.roles = roles;
    }

    public List getPermissions() {
        return permissions;
    }

    public void setPermissions(List permissions) {
        this.permissions = permissions;
    }

    public Set getPermissionSet() {
        return permissionSet;
    }

    public void setPermissionSet(Set permissionSet) {
        this.permissionSet = permissionSet;
    }

    public Map getPermissionMap() {
        return permissionMap;
    }

    public void setPermissionMap(Map permissionMap) {
        this.permissionMap = permissionMap;
    }

    public Dept getDept() {
        return dept;
    }

    public void setDept(Dept dept) {
        this.dept = dept;
    }
}
